package rent_car.process;

import rent_car.Utils.DBUtils;
import rent_car.Utils.XmlUtils;

import java.util.Scanner;

public class Process {

    public static void main(String[] args) throws Exception {

        System.out.println("******* Welcome to 租车系统！ *******");
        Scanner scanner = new Scanner(System.in);
        System.out.println("请选择车型的编号：");
        System.out.println("        1、客车    2、货车    3、皮卡");
        System.out.print("编号：");
        int carTypeNum=scanner.nextInt();
        //根据编号显示车型信息
        DBUtils.FindCarById(carTypeNum);

        System.out.println("请输入汽车id");
        int carId=scanner.nextInt();
        System.out.println("请输入购买的天数");
        int days = scanner.nextInt();
        System.out.println("是否确认购买？");
        String str=scanner.next();

        XmlUtils.CreateOrdersXml(carId,days,carTypeNum);


}







}
